<template>
  <div class="footer">
    <ul class="flex-box">
      <li class="flex-1 current" @click.stop="goJump('tel')">电话咨询</li>
      <li class="flex-1" @click.stop="goJump('list')">列表</li>
      <li class="flex-1" @click.stop="goJump('myManage')">我的</li>
    </ul>

    <van-popup v-model="show">
      <div class="dialog">
        内容
      </div>
    </van-popup>
  </div>
</template>

<script>
export default {
  name: "foo",
  data() {
    return {
      show: false,
    };
  },
  methods: {
    goJump(name) {
      this.$router.push(name)
    },
  },
};
</script>
<style lang="less" scoped>
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 100;
  width: 100%;
  height: 4rem;
  line-height: 4rem;
  background-color: #cccccc;
  li {
    text-align: center;
    color: @text-color-fff;
    &.current {
      background-color: #84aaf1;
    }
  }
}
.dialog {
  width: 50vw;
  height: 30vw;
}
</style>
